package com.ganzi.ganziitem.netty.util;

import io.netty.channel.Channel;
import io.netty.channel.socket.SocketChannel;

public class NettyChannelMap {


	public static String getIp(Channel channel) {
		try {
			return ((SocketChannel) channel).remoteAddress().getHostName();
		} catch (Exception e) {
			return null;
		}
	}

}
